def merge_data(data):
    # 初始化最终的大文本和时间范围
    final_text = ""
    start_time = float('inf')  # 设置初始值为正无穷大
    end_time = float('-inf')  # 设置初始值为负无穷大

    # 遍历数据并拼接文本
    for entry in data:
        final_text += entry['text']
        if entry['begin_time'] < start_time:
            start_time = entry['begin_time']
        if entry['end_time'] > end_time:
            end_time = entry['end_time']

    # 返回合并后的结果
    return {
        "text": final_text,
        "begin_time": start_time,
        "end_time": end_time
    }